import request from '@/utils/request'

//统一字典下拉框查询
export function adminDict(params) {
    return request({
        url: `common/v1/adminDict`,
        params
    })
}
//查询数字权益卡下拉框
export function cardSelect() {
    return request({
        url: `/shenye/casting/activity/equity/card/select`,
        method: 'get',
        
    })
}

//神椰铸造活动 列表
export function activityList(params) {
    return request({
        url: `/shenye/casting/activity/list`,
        method: 'get',
        params
    })
}

//新增 神椰铸造活动
export function addActivity(data) {
    return request({
      url: '/shenye/casting/activity',
      method: 'post',
      data
    })
}
//编辑 神椰铸造活动
export function editCasting(data) {
    return request({
      url: '/shenye/casting/activity',
      method: 'put',
      data
    })
}
//查询神椰铸造活动详情
export function castingDetail(id) {
    return request({
        url: `/shenye/casting/activity/detail/${id}`,
        method: 'get',
    })
}
//前端显示隐藏
export function changeStatus(id) {
    return request({
      url: `/shenye/casting/activity/show/type/${id}`,
      method: 'put',
    })
}
//停止活动
export function taskCasting(id) {
    return request({
      url: `/shenye/casting/activity/stop/${id}`,
      method: 'put',
    })
}

//神椰铸造活动合成明细列表
export function recordList(params) {
    return request({
      url: `/shenye/casting/activity/record/list`,
      method: 'get',
      params
    })
}
//神椰销毁活动列表
export function destroyActivityList(params) {
    return request({
      url: `/shenye/destroy/activity/list`,
      method: 'get',
      params
    })
}
//批量设置销毁奖励
export function destroyActivityAward(data) {
    return request({
      url: '/shenye/destroy/activity/award',
      method: 'post',
      data
    })
}
//批量停用销毁活动
export function destroyActivityEnd(data) {
    return request({
      url: '/shenye/destroy/activity/end',
      method: 'post',
      data
    })
}
//批量启用销毁活动
export function destroyActivityStart(data) {
    return request({
      url: '/shenye/destroy/activity/start',
      method: 'post',
      data
    })
}
//销毁明细列表
export function destroActivityRecordList(params) {
    return request({
      url: `/shenye/destroy/activity/record/list`,
      method: 'get',
      params
    })
}
//查询数字权益卡材料下拉框
export function materialSelect() {
  return request({
    url: `/shenye/casting/activity/equity/card/material/select`,
    method: 'get',
    
  })
}



